<%@ page language="java" pageEncoding="UTF-8"%>
<%@include file="/pc/jsp/common/common.jsp"%>
<%@ page language="java" import="com.limao.DBDataClass.CrowdUserAuthClass"%>
<%@ page language="java" import="com.limao.DBDataClass.CrowdMAHomeClass"%>
<% 
  String userid=(String)CacheClass.isLogin(request,response);
 if(CacheClass.getIntValue(userid)==0)
 {
 	out.println("<script language='JavaScript'>alert('您还没有登陆！');location.href=document.referrer;</script>"); //后退并刷新
 } 
 CrowdUserAuthClass user= WebFunction.getUserInfo(request,response);
 if(user==null)
 {
	 out.println("<script language='JavaScript'>alert('用户不存在，或被平台禁用，请联系客服！');window.history.back(-1);</script>");
	 return;
 } 
 
 
 int sysTest=WebFunction.getSysTest();
 int userTest=1;
 int flagTest=1;
 if(sysTest==0)
 {
 	flagTest=0;
 }
 else
 {
		 userTest=CacheClass.getIntValue(user.userTest);
		 if(userTest==1)
		 {
		 	flagTest=1;
		 }
		 else
		 {
		 	flagTest=0;
		 }
 
 }
 %>
 <%--
 CrowdMAHomeClass obj= WebFunction.getMAHomeInfo(request,response);
 if(obj==null)
 {
	 out.println("<script language='JavaScript'>alert('白条放贷公司不存在，或平台已中止与供公司合作，暂不开放白条服务！');window.history.back(-1);</script>");
 }
 --%>

<!DOCTYPE html>
<html lang="en" xmlns="http://www.w3.org/1999/html">
<head>
    <title>个人资料</title> 
    
</head>
<body class='bcf'>

<div class="of jz" style="width: 90%;">
    <div class="personalAllInfo w100 bcf of">
        <a href="<%=(imgPath+user.avatar) %>" class="db clearfix of">
            <img src="<%=(imgPath+user.avatar)%>" class="db fl">
            <div class="fl c6" style="margin-left:54px;">
            	<p class="fb f20 lh15"><%=user.username %></p>
            	<div class="clearfix of mgt10 pr"  style="height: 29px;line-height:29px;">
            		<%if (user.viplevel != null && !user.viplevel.equals("0")){%>
	                	<span class="db cf fw600 f16 pa" id="vipShow" style="left: 38px;"><%=user.viplevel%></span>
                	<%}%>
	            	<img src="pc/images/vipShow.png" class="fl dib wauto h100">
	            	<%if (user.vipdateStr != null){%>
	                	<p class="f16 fl mgl10"> <%=user.vipdateStr%></p>
                	<%}%>
	            	
            	</div>
            	
            	<p class="f12 mgt10">VIP等级可提高分成和宝箱收益</p>
            	<!-- <p class="f12 mgt10">经销商  可提活跃值与回购速度</p> -->
            </div>

        </a>
        <article class="clearfix of">
            <span id="changePicBtn" class="fl db cursor">
                <p class="c3 dib fl">更换头像</p>
            </span>
            <a href="pc/applyWithdrawals.jsp" class="fr db">
                <p class="c3 dib fr">提现</p>
            </a>
        </article>
    </div>
    


    <div class="personalAllMoney w100 bcf of">
        <a href="property.html" class="db of">
            
            <div class="personalAllMoneyContent of">
              <div class="of clearfix">
                    <div class="fl">
                    	<a href="pc/record.jsp?recordKind=zongjine" class="db w100 h100 pr">
                        <div style="margin: 27px 0 auto 36px;">
                           <div class="of clearfix">
                            <p class="f19 c9 fl">商场余额</p>
                            <p class='blueLableRecord fl'>记录</p>
                           </div>
                            <div class="clearfix of"><span class="orangeDot fl"></span><p  class="corange fl" style="font-size: 27px;"><%=user.rmbforwith %></p></div>
	                        </div>
	                        <div class="pa" style="height: 42px;width: 1px;background: #E7E7E7;right: -0.5px;top: 8px;"></div>
	                    </a>
                    </div>
                    <div class="fr">
                    	<a href="pc/record.jsp?recordKind=zongedu" class="db w100 h100 pr">
	                    	<div style="margin: 27px 0 auto 128px;">
	                          <div class="of clearfix">
	                            <p class="f19 c9 fl">可用额度</p>
	                            <p class='blueLableRecord fl'>记录</p>
	                           </div>
	                           <div class="clearfix of"><span class="yellowDot fl"></span><p  class="corange fl" style="font-size: 27px;"><%=user.principlelrmb %></p></div>
	                        </div>
                    	</a>
                    </div>
                </div>
                
               <%--  <div class="of clearfix">
                    <div class="fl pr">
                    	<a href="pc/record.jsp?recordKind=kangmaidou" class="db w100 h100 pr">
                    		<div style="margin: 27px 0 auto 36px;">
                           		<div class="of clearfix">
		                            <p class="f19 c9 fl">狸猫豆</p>
		                            <p class='blueLableRecord fl'>记录</p>
	                           </div>
	                            <div class="clearfix of"><span class="greenDot fl"></span><p  class="corange fl" style="font-size: 27px;"><%=user.virtualcoin %></p></div>
	                        </div>
                    	</a>

                        <div class="pa" style="height: 42px;width: 1px;background: #E7E7E7;right: -0.5px;top: 36px;"></div>
                    </div>
                    <div class="fr">
                        <div style="margin: 27px 0 auto 128px;">
                          <div class="of clearfix">
                            <p class="f19 c9 fl">狸猫豆(回购中)</p>
                           </div>
                           <div class="clearfix of"><span class="orangeDot fl"></span><p  class="corange fl" style="font-size: 27px;"><%=user.virtualcoinice %></p></div>
                        </div>
                    </div>
                </div>
                 --%>
                <div class="of clearfix" style="border-bottom:none;">
                    <div class="fl pr">
                    	<a href="pc/record.jsp?recordKind=shengwangzhi" class="db w100 h100">
                    		<div style="margin: 27px 0 auto 36px;">
                           <div class="of clearfix">
                            <p class="f19 c9 fl">活跃值</p>
                            <p class='blueLableRecord fl'>记录</p>
                           </div>
                            <div class="clearfix of"><span class="greenDot fl"></span><p  class="corange fl" style="font-size: 27px;"><%=user.prestigevalue %></p></div>
                        </div>
                    	</a>
                        <div class="pa" style="height: 42px;width: 1px;background: #E7E7E7;right: -0.5px;top: 36px;"></div>
                    </div>
                    <div class="fr">
                    	<a href="pc/rankingList.jsp" class="db w100 h100">
                    		<div style="margin: 27px 0 auto 128px;">
	                          <div class="of clearfix">
	                            <p class="f19 c9 fl">我的排名</p>
	                            <p class='blueLableRecord fl'>排行榜</p>
	                           </div>
	                           <div class="clearfix of"><span class="orangeDot fl"></span><p  class="corange fl" style="font-size: 27px;"><%=user.rank %></p></div>
	                        </div>
                    	</a>
                        
                    </div>
                </div>
                  <div class="of clearfix" style="border-bottom:none;">
                    <div class="fl pr">
                    	<a href="javascript:void(0);" class="db w100 h100">
                    		<div style="margin: 27px 0 auto 36px;">
                           <div class="of clearfix">
                            <p class="f19 c9 fl">vip</p>
                             <p class='blueLableRecord fl'>等级</p>
                           </div>
                           	<%if (user.viplevel != null && !user.viplevel.equals("0")){%>
			                	<div class="clearfix of"><span class="orangeDot fl"></span><p id="vipSpan" class="corange fl f24"><%=user.viplevel%></p></div>
		                	<%}else{%>
		                		<div class="clearfix of"><span class="orangeDot fl"></span><p id="vipSpan" class="corange fl f24">非VIP</p></div>
		                	<%}%>
                            </div>
                    	</a>
                        <div class="pa" style="height: 42px;width: 1px;background: #E7E7E7;right: -0.5px;top: 36px;"></div>
                    </div>
                     <div id="isvruser" style="display:none;"><%=user.isvruser%></div>
                    <div class="fr">
                    	<%if(flagTest==0){ %>
                    	<a href="javascript:void(0);" class="db w100 h100">
                    		<div style="margin: 27px 0 auto 128px;">
	                          <div class="of clearfix">
	                            <p class="f19 c9 fl">可借用商品</p>
	                            <p class='blueLableRecord fl'>数量</p>
	                           </div>
	                           <div class="clearfix of"><span class="yellowDot fl"></span><p id="kjysp" class="corange fl" style="font-size: 27px;"><%=user.tempnum %></p></div>
	                        </div>
                    	</a>
                    	<%} %>
                    </div>
                  
                </div>
                
            </div>
        </a>
    </div>


    <div  class="personalAllMoney w100 bcf of">
        <div class="personalDataContent of w100">
         <div class="of clearfix db" style="margin-top: 43px;">
                <div class="fl pr">
                        <span class="c3" style="line-height: 48px;font-size: 22px;margin-left: 36px;">
                        	   我的销售团队
                        </span>

                </div>
                <div class="fr">
                   
                   <a id="xstd" href="">
                     <input type="button" name="" value="查看" class="btnBlue cf tc br3 f16 cursor" style="height: 48px;line-height: 48px;width: 130px;"/>
                   </a>
                </div>
            </div>
        
           <a class="of clearfix db" style="margin-top: 30px;">
                <div class="fl pr">
                        <span class="c3" style="line-height: 48px;font-size: 22px;margin-left: 36px;">
                            昵称
                        </span>

                </div>
                <div class="fr">
                    <input type="button" name="" value="修改" id="modifyNameBtn" class="btnBlue cf tc br3 f16 cursor" style="height: 48px;line-height: 48px;width: 130px;"/>
                </div>
                <div class="fr">
                    <input type="text" name="" placeholder="<%=user.username %>" class="f20 personalInput fr db tr w100 br6"/>
                </div>

            </a>
            <a  class="of clearfix db"  style="border-bottom:none;margin-top: 30px;">
                <div class="fl pr">
                        <span class="c3"  style="line-height: 48px;font-size: 22px;margin-left: 36px;">
                           	 手机号码
                        </span>

                </div>
                 <div class="fr">
                    <input type="button" name="" value="修改" id="modifyMoblieBtn" disabled="disabled" class="btnYlQ cf tc br3 f16 cursor" style="height: 48px;line-height: 48px;width: 130px;"/>
                </div>
                <div class="fr">
                    <input type="text" name="" placeholder="<%=user.mobile %>" class="f20 personalInput fr db tr w100 br6"/>
                </div>
            </a>        

        </div>
    </div>
 <%-- 
 <div class="of jz bcf br6" style="width: 92%;margin: 57px auto 94px; border: 1px solid #e7e7e7;">
    <div class="of clearfix w100" style="margin: 36px auto 15px;">
        <div class="fl" style="width: 33.33333333%">
            <div class="jz tc" style="width: 148px;">
                <p class="f17 c3">抵押率</p>
                <p class="corange" style="font-size: 37px;margin: 2px 0 9px;"><%=obj.mortgagerate %>%</p>
                <p class="f13 c3">
                    即可获得订单总价的
                    <span class="corange"><%=obj.mortgagerate %>%</span>流动资金
                </p>
            </div>
        </div>
        <div class="fl pr" style="width: 33.33333333%">
            <div class="pa" style="height: 95px;width: 1px;background: #e7e7e7;left: -0.5px;top:12px;"></div>
            <div class="pa" style="height: 95px;width: 1px;background: #e7e7e7;right: -0.5px;top:12px;"></div>
            <div class="jz tc" style="width: 148px;">
                <p class="f17 c3">利息</p>
                <p class="corange" style="font-size: 37px;margin: 2px 0 9px;"><%=obj.mortgageinteres %>%</p>
                <p class="f13 c3">
                    <%=obj.mortgageinteres %>利息
                </p>
            </div>
        </div>
        <div class="fl" style="width: 33.33333333%">
            <div class="jz tc" style="width: 200px;">
                <p class="f17 c3">天数</p>
                <p class="corange" style="font-size: 37px;margin: 2px 0 9px;"><%=obj.mortgagedays %>天</p>
                <p class="f13 c3">
                    即<span class="corange"><%=obj.mortgagedays %>天</span>还贷款，过期将失去
                    订单，订单所有权归本平台
                </p>
            </div>
        </div>
    </div>
</div>   
   --%>     
    
</div>


<div class="theme-popover-mask"></div>
<div id="changePicDiv" class="changePicDiv w100 h100 pf">
    <div class="changePicframe jz">
        <iframe class="w100 h100 of db" src="pc/changePic.jsp" frameborder="0" scrolling="no"  vsspace="0" hspace="0" marginwidth="0" marginheight="0" >

        </iframe>
    </div>
</div>
<div id="modifyMoblieIframeDiv" class="loginIframeDiv w100 h100 pf">
    <div class="registIframe">
        <iframe class="w100 h100 of" src="pc/modifyMoblie.jsp" frameborder="0" scrolling="no"  vsspace="0" hspace="0" marginwidth="0" marginheight="0">

        </iframe>
    </div>
</div>
<!--modifyMoblieIframeDiv-->
<div id="modifyNameIframeDiv" class="loginIframeDiv w100 h100 pf">
    <div class="registIframe">
        <iframe class="w100 h100 of" src="pc/modifyName.jsp" frameborder="0" scrolling="no"  vsspace="0" hspace="0" marginwidth="0" marginheight="0">

        </iframe>
    </div>
</div>
<!--modifyMoblieIframeDiv-->

  <script>
   function showBlockOrNot(condition,div){
		if(condition==0||condition==""||condition==null||condition==NaN){
		    div.html("无");
		}
	}
	$(function(){
		showBlockOrNot($("#isvruser").text(),$("#kjysp"));//可借用商品是否显显示
		//显示vip说明
		<%-- var vipStr = '<%=user.viplevel%>';
		var vipLevel = '<%=user.level%>';
	
		if(vipStr == "null"||vipStr == " "){
		 	$("#vipSpan,#vipShow").html("0");
		 	
		}else {
			if(vipLevel != 0){
			   var  vipHtml = '<img src="mb/images/Deng.png" class="dib" style="height: 18px;width: 18px;margin:0 5px;">'+vipStr;
				$("#vipSpan").html(vipHtml);
				$("#vipShow").html(vipLevel);
			}
		} --%>
		var username='<%=user.username%>';
			//传递参数至团队列表连接
		$("#xstd").attr("href","pc/teamList.jsp?keyword="+encodeURIComponent(encodeURIComponent(username))); 
	})
 </script>
</body>
</html>
